package cn.iocoder.mall.shop.service.convert;

import cn.iocoder.mall.shop.api.pojo.ShopDetailDTO;
import cn.iocoder.mall.shop.service.entities.Shop;
import cn.iocoder.mall.shop.service.entities.ShopDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import java.util.List;

/***
 *@author yinxucun
 *@date 2019-12-27 11:22 
 */
@Mapper
public interface ShopConvert {
    ShopConvert INSTANCE = Mappers.getMapper(ShopConvert.class);
    @Mappings({}) // TODO 芋艿，后续细看下 mapstruct 的 API ，优化这块
    List<ShopDetailDTO> convert3(List<ShopDTO> shops);

    List<cn.iocoder.mall.shop.api.pojo.ShopDTO> convert4(List<ShopDTO> list);
}
